# -*- coding: UTF-8 -*-
import random


def rand_num_list(min: int, max: int) -> list:
    i = 0
    num_list = []
    signal = True
    while (i < (max - min + 1)):
        num = random.randint(min, max)
        print(num)
        signal = True   # 很关键
        for n in num_list:
            
            if (num == n):
               signal = False
            elif (num == 0):
               signal = False
        if (signal):
            num_list.append(num)
            i += 1
    return num_list



if (__name__ == "__main__"):
    print("hello")
   
    print(rand_num_list(1,30))

    num_list = []
    for i in range(1,30):
        num_list.append(i)
    print(num_list)

# 1, 2,  3, 4,  5,  6, 7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
# 6, 8, 22, 3, 13, 21, 2, 17, 15, 26,  4, 23,  7, 16, 20, 18, 12, 28, 19, 14, 10,  5, 30, 11, 27, 24,  9, 29, 25,  1
# "C, A, B, B,  B,  B, A,  A,  C,  C,  C,  B,  B,  C,  B,  A,  B,  C,  C,  A,  B,  C,  C,  A,  D,  C,  C,  B,  B,  B"